import { RouterInterceptorsProps } from '.';

export function TitleInterceptor({ children, route }: RouterInterceptorsProps) {
  if (route?.meta?.title) {
    document.title = route.meta.title;
  }

  return children;
}
